//#define __DEBUG__
// by Xeno
#define THIS_FILE "x_m147.sqf"
#include "x_setup.sqf"
private ["_objs", "_poss","_types"];

_mpos = markerPos QGVAR(sm_147);
_mpos set [2,0];
GVAR(x_sm_pos) = [_mpos]; // index: 47,   Destroy oil pumps
GVAR(x_sm_type) = "normal"; // "convoy"

#ifdef __SMMISSIONS_MARKER__
if (true) exitWith {};
#endif

if (X_Client && {!GVAR(IS_HC_CLIENT)}) then {
	GVAR(cur_sm_txt) = (localize "STR_DOM_SIDESTRING_1471");
	GVAR(current_mission_resolved_text) = (localize "STR_DOM_SIDESTRING_1472");
};

if (call FUNC(checkSHC)) then {
	__Poss
	_types = GVAR(sm_land_tanksmall);
	if (typename _types == typename "") then { _types = [GVAR(sm_land_tanksmall)]; };
	_objs = nearestObjects [_poss, _types, 30];	
	if (count _objs < 3) then {_objs set [2, objNull]};
	sleep 2.123;
	["specops", 2, "basic", 4, _poss,150,true] spawn FUNC(CreateInf);
	sleep 2.221;
	["shilka", 1, "bmp", 1, "tank", 1, _poss,1,300,true] spawn FUNC(CreateArmor);
	sleep 5.123;
	_objs spawn FUNC(sidefactory2);
};
